﻿using SKeeper.Domain.Warehouse;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SKeeper.Application.ViewModels.Warehouse
{
    public class ProductViewModel
    {

        public ProductViewModel()
        {
        }

        public ProductViewModel(StoredItem item)
        {
            this.Name = item.Item.Name;
            this.Quantity = item.Quantity;
            this.Unit = item.Unit.ToString();
        }

        public string Name { get; set; }

        public double Quantity { get; set; }

        public string Unit { get; set; }
    }

    public class ProductListViewModel
    {
        public IEnumerable<ProductViewModel> Products { get; set; }
    }
}
